home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / system.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  8.3 KB  |  191 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'System.pas' rev: 3.00
  6.  
  7. #ifndef SystemHPP
  8. #define SystemHPP
  9. #include <sysdefs.H>
  10.  
  11. //-- user supplied -----------------------------------------------------------
  12.  
  13. namespace System
  14. {
  15. //-- type declarations -------------------------------------------------------
  16. //-- var, const, procedure ---------------------------------------------------
  17. #define False (bool)(0)
  18. #define True (bool)(1)
  19. #define MaxInt (int)(2147483647)
  20. #define MaxLongint (int)(2147483647)
  21. #define varEmpty (Byte)(0)
  22. #define varNull (Byte)(1)
  23. #define varSmallint (Byte)(2)
  24. #define varInteger (Byte)(3)
  25. #define varSingle (Byte)(4)
  26. #define varDouble (Byte)(5)
  27. #define varCurrency (Byte)(6)
  28. #define varDate (Byte)(7)
  29. #define varOleStr (Byte)(8)
  30. #define varDispatch (Byte)(9)
  31. #define varError (Byte)(10)
  32. #define varBoolean (Byte)(11)
  33. #define varVariant (Byte)(12)
  34. #define varUnknown (Byte)(13)
  35. #define varByte (Byte)(17)
  36. #define varString (Word)(256)
  37. #define varTypeMask (Word)(4095)
  38. #define varArray (Word)(8192)
  39. #define varByRef (Word)(16384)
  40. #define vtInteger (Byte)(0)
  41. #define vtBoolean (Byte)(1)
  42. #define vtChar (Byte)(2)
  43. #define vtExtended (Byte)(3)
  44. #define vtString (Byte)(4)
  45. #define vtPointer (Byte)(5)
  46. #define vtPChar (Byte)(6)
  47. #define vtObject (Byte)(7)
  48. #define vtClass (Byte)(8)
  49. #define vtWideChar (Byte)(9)
  50. #define vtPWideChar (Byte)(10)
  51. #define vtAnsiString (Byte)(11)
  52. #define vtCurrency (Byte)(12)
  53. #define vtVariant (Byte)(13)
  54. #define vtInterface (Byte)(14)
  55. #define vtWideString (Byte)(15)
  56. #define vmtSelfPtr (Shortint)(-76)
  57. #define vmtIntfTable (Shortint)(-72)
  58. #define vmtAutoTable (Shortint)(-68)
  59. #define vmtInitTable (Shortint)(-64)
  60. #define vmtTypeInfo (Shortint)(-60)
  61. #define vmtFieldTable (Shortint)(-56)
  62. #define vmtMethodTable (Shortint)(-52)
  63. #define vmtDynamicTable (Shortint)(-48)
  64. #define vmtClassName (Shortint)(-44)
  65. #define vmtInstanceSize (Shortint)(-40)
  66. #define vmtParent (Shortint)(-36)
  67. #define vmtSafeCallException (Shortint)(-32)
  68. #define vmtAfterConstruction (Shortint)(-28)
  69. #define vmtBeforeDestruction (Shortint)(-24)
  70. #define vmtDispatch (Shortint)(-20)
  71. #define vmtDefaultHandler (Shortint)(-16)
  72. #define vmtNewInstance (Shortint)(-12)
  73. #define vmtFreeInstance (Shortint)(-8)
  74. #define vmtDestroy (Shortint)(-4)
  75. #define vmtQueryInterface (Byte)(0)
  76. #define vmtAddRef (Byte)(4)
  77. #define vmtRelease (Byte)(8)
  78. #define vmtCreateObject (Byte)(12)
  79. extern THREAD void *RaiseList;
  80. extern THREAD int InOutRes;
  81. extern PACKAGE void *ExceptProc;
  82. extern PACKAGE void *ErrorProc;
  83. extern PACKAGE void *ExceptClsProc;
  84. extern PACKAGE void *ExceptObjProc;
  85. extern PACKAGE TMetaClass*ExceptionClass;
  86. extern PACKAGE void *SafeCallErrorProc;
  87. extern PACKAGE void *AssertErrorProc;
  88. extern PACKAGE void *AbstractErrorProc;
  89. extern PACKAGE int HPrevInst;
  90. extern PACKAGE HINSTANCE MainInstance;
  91. extern PACKAGE bool IsLibrary;
  92. extern PACKAGE int CmdShow;
  93. extern PACKAGE char *CmdLine;
  94. extern PACKAGE void *InitProc;
  95. extern PACKAGE int ExitCode;
  96. extern PACKAGE void *ExitProc;
  97. extern PACKAGE void *ErrorAddr;
  98. extern PACKAGE int RandSeed;
  99. extern PACKAGE bool IsConsole;
  100. extern PACKAGE bool IsMultiThread;
  101. extern PACKAGE Byte FileMode;
  102. extern PACKAGE Byte Test8086;
  103. extern PACKAGE Byte Test8087;
  104. extern PACKAGE Shortint TestFDIV;
  105. extern PACKAGE TextFile Input;
  106. extern PACKAGE TextFile Output;
  107. extern PACKAGE Word Default8087CW;
  108. extern PACKAGE Word HeapAllocFlags;
  109. extern PACKAGE Byte DebugHook;
  110. extern PACKAGE Variant Unassigned;
  111. extern PACKAGE Variant Null;
  112. extern PACKAGE int AllocMemCount;
  113. extern PACKAGE int AllocMemSize;
  114. extern PACKAGE void *VarDispProc;
  115. extern PACKAGE void *DispCallByIDProc;
  116. extern PACKAGE TLibModule *LibModuleList;
  117. extern PACKAGE TModuleUnloadRec *ModuleUnloadList;
  118. extern PACKAGE void __fastcall TextStart(void);
  119. extern PACKAGE void * __fastcall SysGetMem(int Size);
  120. extern PACKAGE int __fastcall SysFreeMem(void * P);
  121. extern PACKAGE void * __fastcall SysReallocMem(void * P, int Size);
  122. extern PACKAGE THeapStatus __fastcall GetHeapStatus(void);
  123. extern PACKAGE void __fastcall GetMemoryManager(TMemoryManager &MemMgr);
  124. extern PACKAGE void __fastcall SetMemoryManager(const TMemoryManager &MemMgr);
  125. extern PACKAGE bool __fastcall IsMemoryManagerSet(void);
  126. extern PACKAGE int __fastcall IOResult(void);
  127. extern PACKAGE void __fastcall Move(const void *Source, void *Dest, int Count);
  128. extern PACKAGE int __fastcall ParamCount(void);
  129. extern PACKAGE AnsiString __fastcall ParamStr(int Index);
  130. extern PACKAGE void __fastcall Randomize(void);
  131. extern PACKAGE char __fastcall UpCase(char Ch);
  132. extern PACKAGE void __fastcall Set8087CW(Word NewCW);
  133. extern PACKAGE int __fastcall BeginThread(void * SecurityAttributes, int StackSize, TThreadFunc ThreadFunc
  134.     , void * Parameter, int CreationFlags, int &ThreadId);
  135. extern PACKAGE void __fastcall EndThread(int ExitCode);
  136. extern PACKAGE void __fastcall UniqueString(AnsiString &str);
  137. extern PACKAGE AnsiString __fastcall WideCharToString(wchar_t * Source);
  138. extern PACKAGE AnsiString __fastcall WideCharLenToString(wchar_t * Source, int SourceLen);
  139. extern PACKAGE void __fastcall WideCharToStrVar(wchar_t * Source, AnsiString &Dest);
  140. extern PACKAGE void __fastcall WideCharLenToStrVar(wchar_t * Source, int SourceLen, AnsiString &Dest
  141.     );
  142. extern PACKAGE wchar_t * __fastcall StringToWideChar(const AnsiString Source, wchar_t * Dest, int DestSize
  143.     );
  144. extern PACKAGE AnsiString __fastcall OleStrToString(wchar_t * Source);
  145. extern PACKAGE void __fastcall OleStrToStrVar(wchar_t * Source, AnsiString &Dest);
  146. extern PACKAGE wchar_t * __fastcall StringToOleStr(const AnsiString Source);
  147. extern PACKAGE void __fastcall VarCopyNoInd(Variant &Dest, const Variant &Source);
  148. extern PACKAGE int __fastcall VarType(const Variant &V);
  149. extern PACKAGE Variant __fastcall VarAsType(const Variant &V, int VarType);
  150. extern PACKAGE bool __fastcall VarIsEmpty(const Variant &V);
  151. extern PACKAGE bool __fastcall VarIsNull(const Variant &V);
  152. extern PACKAGE AnsiString __fastcall VarToStr(const Variant &V);
  153. extern PACKAGE Variant __fastcall VarFromDateTime(TDateTime DateTime);
  154. extern PACKAGE TDateTime __fastcall VarToDateTime(const Variant &V);
  155. extern PACKAGE Variant __fastcall VarArrayCreate(const int * Bounds, const int Bounds_Size, int VarType
  156.     );
  157. extern PACKAGE Variant __fastcall VarArrayOf(const Variant * Values, const int Values_Size);
  158. extern PACKAGE int __fastcall VarArrayDimCount(const Variant &A);
  159. extern PACKAGE int __fastcall VarArrayLowBound(const Variant &A, int Dim);
  160. extern PACKAGE int __fastcall VarArrayHighBound(const Variant &A, int Dim);
  161. extern PACKAGE void * __fastcall VarArrayLock(const Variant &A);
  162. extern PACKAGE void __fastcall VarArrayUnlock(const Variant &A);
  163. extern PACKAGE Variant __fastcall VarArrayRef(const Variant &A);
  164. extern PACKAGE bool __fastcall VarIsArray(const Variant &A);
  165. extern PACKAGE int __fastcall FindHInstance(void * Address);
  166. extern PACKAGE int __fastcall FindClassHInstance(TMetaClass* ClassType);
  167. extern PACKAGE int __fastcall FindResourceHInstance(int Instance);
  168. extern PACKAGE int __fastcall LoadResourceModule(char * ModuleName);
  169. extern PACKAGE void __fastcall EnumModules(TEnumModuleFunc Func, void * Data);
  170. extern PACKAGE void __fastcall EnumResourceModules(TEnumModuleFunc Func, void * Data);
  171. extern PACKAGE void __fastcall AddModuleUnloadProc(TModuleUnloadProc Proc);
  172. extern PACKAGE void __fastcall RemoveModuleUnloadProc(TModuleUnloadProc Proc);
  173. extern PACKAGE void __fastcall RegisterModule(PLibModule LibModule);
  174. extern PACKAGE void __fastcall UnregisterModule(PLibModule LibModule);
  175. extern PACKAGE AnsiString __fastcall LoadResString(PResStringRec ResStringRec);
  176. extern PACKAGE double __cdecl CompToDouble(Comp acomp);
  177. extern PACKAGE void __cdecl DoubleToComp(double adouble, Comp &result);
  178. extern PACKAGE Currency __cdecl CompToCurrency(Comp acomp);
  179. extern PACKAGE void __cdecl CurrencyToComp(Currency acurrency, Comp &result);
  180. extern PACKAGE void * __cdecl GetMemory(int Size);
  181. extern PACKAGE int __cdecl FreeMemory(void * P);
  182. extern PACKAGE void * __cdecl ReallocMemory(void * P, int Size);
  183. extern PACKAGE void __fastcall FPower10(void);
  184.  
  185. }    /* namespace System */
  186. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  187. using namespace System;
  188. #endif
  189. //-- end unit ----------------------------------------------------------------
  190. #endif    // System
  191.